import request from '@/utils/request'

// 查询定位档案列表
export function listDingWeiDa(query) {
  return request({
    url: '/swla2/dingWeiDa/list',
    method: 'get',
    params: query
  })
}

// 查询定位档案详细
export function getDingWeiDa(userId) {
  return request({
    url: '/swla2/dingWeiDa/' + userId,
    method: 'get'
  })
}

// 新增定位档案
export function addDingWeiDa(data) {
  return request({
    url: '/swla2/dingWeiDa',
    method: 'post',
    data: data
  })
}

// 修改定位档案
export function updateDingWeiDa(data) {
  return request({
    url: '/swla2/dingWeiDa',
    method: 'put',
    data: data
  })
}

// 删除定位档案
export function delDingWeiDa(userId) {
  return request({
    url: '/swla2/dingWeiDa/' + userId,
    method: 'delete'
  })
}
